import namecards_main
# 只能输入QQ邮箱


def menu():
    print('====================================')
    print('\t1.增加名片')
    print('\t2.删除名片')
    print('\t3.修改名片')
    print('\t4.查看名片')
    print('====================================')


while 1 == 1:
    menu()
    i = int(input('请输入你的选择：'))
    if i == 1:
        namecards_main.Add()
    elif i == 2 and namecards_main.dict1:
        namecards_main.dele()
    elif i == 3 and namecards_main.dict1:
        namecards_main.change()
    elif i == 4 and namecards_main.dict1:
        namecards_main.search()
    elif i > 4 and namecards_main.dict1:
        print('请输入正确的数字')
    else:
        print('名片夹为空')
